#!/usr/bin/env bash

echo 'start harmonious installing...'

# 阿拉伯数字18作为异常退出码
check='[ $? -eq 0 ] || exit 18'

eval "$check" && echo '安装初始工具并进行初始配置'
eval "$check" && bash ../install/init.sh
eval "$check" && echo '安装lua'
eval "$check" && bash ../install/lua.sh
eval "$check" && echo '安装nodejs'
eval "$check" && bash ../install/node.sh
eval "$check" && echo '安装python3'
eval "$check" && bash ../install/python.sh
eval "$check" && echo '安装openresty'
eval "$check" && bash ../install/openresty.sh


eval "$check" && echo "finish harmonious installing！！！"

